<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2019 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// [ 应用入口文件 ]
namespace think;

require __DIR__ . '/../vendor/autoload.php';

$http = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && $_SERVER['HTTPS'] != 'off') ? 'https' : 'http';
define('SITE_URL',$http.'://'.$_SERVER['HTTP_HOST']); // 网站域名
define('BASE_PATH', substr($_SERVER['SCRIPT_NAME'], 0, -10));
defined('UPLOAD_PATH') or define('UPLOAD_PATH','upload/'); // 编辑器图片上传路径
/*header("Access-Control-Allow-Origin:*");
header("Access-Control-Allow-Methods:GET, POST, OPTIONS");
header("Access-Control-Allow-Headers:DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type, Accept-Language, Origin, Accept-Encoding");


error_reporting(E_ERROR | E_WARNING | E_PARSE);//报告运行时错误
define('PLUGIN_PATH', dirname(__DIR__) . '/plugins/');
defined('UPLOAD_PATH') or define('UPLOAD_PATH','public/upload/'); // 编辑器图片上传路径
define('DYSHOP_CACHE_TIME',1); // DYshop 缓存时间  31104000

define('HTTP',$http);
define('INSTALL_DATE',1463741583);
define('SERIALNUMBER','20210501hqkjlaowu');
// 定义时间
define('NOW_TIME',$_SERVER['REQUEST_TIME']);*/



// 执行HTTP应用并响应
$http = (new App())->http;

$response = $http->run();

$response->send();

$http->end($response);
